add_executable(MakeTable MakeTable.cxx)
 
add_custom_command (
  OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/Table.h
  COMMAND MakeTable ${CMAKE_CURRENT_BINARY_DIR}/Table.h
  DEPENDS MakeTable
  )

#add_custom_command(
#	TARGET MakeTable
#	COMMAND MakeTable ${CMAKE_CURRENT_BINARY_DIR}/Table2.h
#	)
 
include_directories( ${CMAKE_CURRENT_BINARY_DIR} )
 
add_library(Mylib SHARED mylib.cpp ${CMAKE_CURRENT_BINARY_DIR}/Table.h  )

install (TARGETS Mylib DESTINATION bin)
install (FILES mylib.h DESTINATION include)
